package cn.itcast.shop.categorysecond.vo;

import java.util.HashSet;
import java.util.Set;

import cn.itcast.shop.category.vo.Category;
import cn.itcast.shop.product.vo.Product;

/**
 * 二级分类实体
 * @author zzc
 *
 */
public class CategorySecond {

    private Integer csid;
    private String csname;
    private Category category; //与一级分类关联
    private Set<Product> products = new HashSet<Product>(); //商品集合

	public Integer getCsid() {
        return csid;
    }
    public void setCsid(Integer csid) {
        this.csid = csid;
    }

    public String getCsname() {
        return csname;
    }
    public void setCsname(String csname) {
        this.csname = csname == null ? null : csname.trim();
    }

    public Category getCategory() {
		return category;
	}
	public void setCategory(Category category) {
		this.category = category;
	}
    
	public Set<Product> getProducts() {
		return products;
	}
	public void setProducts(Set<Product> products) {
		this.products = products;
	}
	
}



















